using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;

namespace igp.net
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string [] args)
        {
            //Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormMain main = FormMain.createForm();

            if (args.Length > 1)
            {
                MessageBox.Show("You cannot specify more than one file to be opened.", "Error");
            }
            if (args.Length == 1)
            {
                FormMain.Singleton.QuickOpenProject(args[0]);
            }

            Application.Run(main);
        }
    }
}